import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;

import static java.lang.Math.*;

/**
 * Created by IntelliJ IDEA.
 * User: Taras_Brzezinsky
 * Date: 4/26/11
 * Time: 6:37 PM
 * To change this template use File | Settings | File Templates.
 */
public class TaskB extends Thread {
    public TaskB() {
        this.setPriority(Thread.MAX_PRIORITY);
    }

    public void run() {
        try {
            final String making = "ROYGBIV";
            final String remainder = "GBIV";
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
            int n = Integer.parseInt(in.readLine());
            int rem = n  % 7, cnt = n / 7;
            String result = "";
            for (int i =0 ; i < cnt; ++i){
                result += making;
            }
            for (int i = 0; i < rem; ++i){
                result += Character.toString(remainder.charAt(i % remainder.length()));
            }
            out.println(result);
            out.flush();
            out.close();
        } catch (Throwable e) {
            System.err.println("Exception from runtime....");
            handleException(e);
        }
    }


    public static void main(String[] args) {
        try {
            new TaskB().start();
        } catch (Throwable e) {
            handleException(e);
        }
    }

    private static void handleException(Throwable e) {
        System.err.println(e.getMessage());
        System.err.println(e.getStackTrace());
    }

    private BufferedReader in;
    private PrintWriter out;
}